package com.ez.supervise.dao.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class BaseDaoImpl implements BaseDao {
	protected static final Log log = LogFactory.getLog(BaseDaoImpl.class);

	protected SqlMapClientTemplate sqlMapClientTemplate;

	public void delete(Long id) {
	}

	public Object get(Long id) {
		return null;
	}

	public void insert(Object entity) {

	}

	public void update(Object entity) {
	}

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}

	public void setSqlMapClientTemplate(
			SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}

	public Long getSequence(String seqName) {
		return (Long) sqlMapClientTemplate.queryForObject("base.getSequence",
				seqName);
	}
}
